from selenium.webdriver.common.by import By
from autoTest_ecshop.base_page.base import Base

class OrderPage(Base):
    # 提交订单按钮定位器
    submitOrder_locator = (By.CSS_SELECTOR,'[type="image"]')
    # 选择配送方式
    delivery_locator=(By.XPATH,'//tr[2]/td/input[@name="shipping"]')
    # 选择支付方式
    cash_locator = (By.XPATH,'//tr[2]/td/input[@name="payment"]')
    # 订单提交成功的提示信息定位器
    prompt_locator= (By.CSS_SELECTOR,'[style="text-align:center; height:30px; line-height:30px;"]')